package com.pureut.production.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.production.domain.LineWorkShop;
import com.pureut.production.domain.SysShopModeling;
import com.pureut.production.domain.dto.GetLineDto;
import com.pureut.production.domain.dto.SysShopModelingDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
@Mapper
public interface SysShopModelingMapper extends BaseMapper<SysShopModeling> {

    /**
     * 根据生产阶别查出对应线别
     * @return
     */
    List<GetLineDto> getLine(String productionLevel);

    /**
     * 获取车间下的仓库id
     */
    SysShopModelingDto getWarehouseing(String getModelingCode);

    /**
     * 根据线别编码获取编码和车间id
     */
    LineWorkShop selectSysShopLine(String lineCode);

    SysShopModelingDto getSysShopModeling(String modelingCode);

    /**
     * 根据线别编码获取车间编码和车间id
     */
    LineWorkShop getWorkshopInfo(String getModelingCode);
}
